//
//  UserLongGestureView.m
//  Arts1
//
//  Created by apple on 15/9/16.
//  Copyright (c) 2015年 Arts1. All rights reserved.
//

#import "UserLongGestureView.h"
#import "AllHeader.h"

@interface UserLongGestureView ()

/**
 *  添加背景模糊视图
 */
@property (nonatomic ,strong) UIVisualEffectView *visualEffectView;

@end

@implementation UserLongGestureView

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame])
    {
        UIVisualEffect *visualEffect = [UIBlurEffect effectWithStyle:(UIBlurEffectStyleDark)];
        
        _visualEffectView = [[UIVisualEffectView alloc] initWithEffect:visualEffect];
        
        _visualEffectView.frame = CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);;
        
        _visualEffectView.alpha = 0.7;
        
        [self addSubview:_visualEffectView];
    }
    return self;
}
@end
